<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>插件</title>
  <script src="../vue.js"></script>
</head>
<body>
  <div id="root">
    <my-component></my-component>
    <div v-font="font">data</div>
    <div>{{gender | g}}</div>
  </div>
  <script type="module">
    Vue.config.productionTip = false

    import MyPlugin from './plugins.js'
    Vue.use(MyPlugin, 'hello')

    var vm = new Vue({
      el: '#root',
      mounted() {
        console.log(this.$gp22)
        this.$sayHe
        this.$options.beforeRouter()
      },
      data: {
        font: '50px',
        gender: '男'
      }
    })
  </script>
</body>
</html>